package com.objcat.servicesecurity.service;

import com.objcat.servicesecurity.entity.po.PowerPo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.objcat.servicesecurity.entity.po.RolePo;
import com.objcat.servicesecurity.entity.vo.PowerVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author misheep
 * @since 2020-07-29
 */
public interface PowerService extends IService<PowerPo> {
    /**
     * 获取角色的权限
     */
    public List<PowerVo> getPowers(RolePo rolePo);
    /**
     * 获取全部资源
     */
    public List<PowerPo> getAllPowers();
    /**
     * 转换成Vo
     */
    public PowerVo toPowerVo(PowerPo powerPo);
    /**
     * List转换成VoList
     */
    public List<PowerVo> toPowerVoList(List<PowerPo> powerPoList);

}
